<div class="col-md-12">
    <div class="box margin-middle max-width">
        <!-- BOX-BODY -->
        <div class="box-body">
            {{#bs-form formLayout=formLayout model=employeeproformancesModel}}
                <!-- 列表编辑-->
                <div class="row">
                    <div class="col-xs-12">
                        <p class="user-add-btn">
                          {{#if detailEdit}}
                          {{else}}
                            {{#if showEditBut}}
                              {{#ui/form-function editAction="detailEditClick" detailEditClick="detailEditClick"
                              removeAction="delById" delById="delById" editNone=true}}
                              {{/ui/form-function}}
                            {{/if}}
                          {{/if}}
                        </p>
                    </div>
                    <div class="col-xs-12 nopadding-horizontal mt20">
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">员工姓名：</span>
                                {{#if detailEdit}}
                                        {{#bs-form-element class="inline-block form-input-group" controlType="employee" property="employee" }}
                                            {{#power-select class="input-group-content" placeholder="必填" options=employeeList selected=employeeproformancesModel.employee
                                            searchField="sortName" noMatchesMessage="没有相关内容" allowClear=false onchange=(action "selectEmployee" ) as |employee|}}
                                                {{employee.name}}
                                            {{/power-select}}
                                        {{/bs-form-element}}
                                {{else}}
                                    <div class="input-group-content">{{employeeproformancessInfo.employee.name}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">岗位：</span>
                                <div class="input-group-content">{{salaryPositionName}}</div>
                              </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">操作人：</span>
                                {{#if detailEdit}}
                                    <div class="input-group-content">{{curUser.name}}</div>
                                {{else}}
                                    <div class="input-group-content">{{employeeproformancessInfo.createUser.name}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">绩效类型：</span>
                                {{#if detailEdit}}
                                {{#bs-form-element class="inline-block form-input-group" controlType="type" property="type" }}
                                  {{callbusi/dict-selector curDict=employeeproformancesModel.type groupCode=constants.employeeProformanceType
                                    showName="必填" dictSelect="employeeproformancesTypeSelect" value=employeeproformancesModel.type preselected=false}}
                                  {{/bs-form-element}}
                                {{else}}
                                    <div class="input-group-content">{{employeeproformancessInfo.type.typename}}</div>
                                {{/if}}
                            </div>
                        </div>
                        {{#if showFormanceType}}
                            <div class="col-xs-12 col-sm-6">
                                <div class="form-input-group">
                                    <span class="input-group-addon">规定项目：</span>
                                    {{#if detailEdit}}
                                            {{#bs-form-element class="inline-block form-input-group" controlType="typeName" property="typeName" }}
                                                {{#power-select class="input-group-content" placeholder="必填" options=performanceItemList selected=curPerformanceItem
                                                searchField="sortName" noMatchesMessage="没有相关内容" allowClear=false onchange=(action "selectPerformanceItem" ) as |performanceItem|}}
                                                    {{performanceItem.name}}
                                                {{/power-select}}
                                            {{/bs-form-element}}
                                    {{else}}
                                        <div class="input-group-content">{{employeeproformancessInfo.typeName}}</div>
                                    {{/if}}
                                </div>
                            </div>
                            {{#if showPerformanceItem}}
                                {{#if showPerformanceDetial}}
                                    <div class="col-xs-12 col-sm-6">
                                        <div class="form-input-group">
                                            <span class="input-group-addon">金额：</span>
                                            {{#if detailEdit}}
                                                <div class="input-group-content">{{curPerformanceDetial.money}}</div>
                                            {{else}}
                                                <div class="input-group-content">{{employeeproformancessInfo.amount}}</div>
                                            {{/if}}
                                        </div>
                                    </div>
                                {{/if}}
                                <div class="col-xs-12 col-sm-12">
                                    <div class="form-input-group">
                                        <span class="input-group-addon">规定细则：</span>
                                        {{#if detailEdit}}
                                                {{#bs-form-element class="inline-block form-input-group" controlType="typeItemName" property="typeItemName" }}
                                                    {{#power-select class="input-group-content" placeholder="必填" options=performanceDetialList selected=curPerformanceDetial
                                                    searchField="sortName" noMatchesMessage="没有相关内容" allowClear=false onchange=(action "selectPerformanceDetial" ) as |performanceDetial|}}
                                                        {{performanceDetial.remark}}
                                                    {{/power-select}}
                                                {{/bs-form-element}}
                                        {{else}}
                                            <div class="input-group-content">{{employeeproformancessInfo.typeItemName}}</div>
                                        {{/if}}
                                    </div>
                                </div>
                            {{/if}}
                        {{/if}}
                        {{!-- <div class="col-xs-12 col-sm-12">
                            <div class="form-input-group">
                                <span class="input-group-addon">备注：</span>
                                {{#if detailEdit}}
                                  {{textarea type="text" class="full-width inline-block form-input-group label-normal form-control" value=employeeproformancesModel.remark}}
                                {{else}}
                                    <div class="input-group-content">{{employeeproformancessInfo.remark}}</div>
                                {{/if}}
                            </div>
                        </div> --}}
                    </div>
                </div>
                <!-- 列表编辑 -->
                <div class="box">
                <div class="text-center padding-top20">
                    <p class="text-center user-add-btn" style="display:inline-block;margin:0 auto!important ">
                    {{#if detailEdit}}
                    {{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-check"  text='保存' clickAction="saveEmployeeproformances" saveEmployeeproformances="saveEmployeeproformances"}}
                    {{/ui/mix-button}}
                    {{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-mail-reply"  text='取消' clickAction="detailCancel" detailCancel="detailCancel"}}
                    {{/ui/mix-button}}
                    {{else}}
                    {{/if}}
                    </p>
                </div>
                </div>
            {{/bs-form}}
        </div>
        <!-- /BOX-BODY -->
    </div>
</div>
